import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import Home from "@/pages/home/index.vue";
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component: Home,
    meta: {
      title: "首页"
    }
  },
  {
    path: "/chat",
    name: "Chat",
    component: () => import("@/pages/chat/index.vue"),
    meta: {
      title: "chat"
    }
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
